]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
main: Move screenshotUI initialization earlier
authorIvan Molodetskikh <yalterz@gmail.com>
Tue, 8 Feb 2022 16:13:25 +0000 (19:13 +0300)
committerMarge Bot <marge-bot@gnome.org>
Sat, 12 Feb 2022 14:36:54 +0000 (14:36 +0000)
A new screen recording panel indicator will connect to its signal, so it
needs to be initialized before the panel.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2163>

js/ui/main.js

index 908688c5a6a4b1e90d63902d61c12a12fc6456ee..3d7a044c42f2a56e0e635fe73be768cbe8d37d1a 100644 (file)
@@ -221,6 +221,8 @@ function _initializeUI() {
     inputMethod = new InputMethod.InputMethod();
     Clutter.get_default_backend().set_input_method(inputMethod);
 
+    screenshotUI = new Screenshot.ScreenshotUI();
+
     messageTray = new MessageTray.MessageTray();
     panel = new Panel.Panel();
     keyboard = new Keyboard.KeyboardManager();
@@ -228,8 +230,6 @@ function _initializeUI() {
     windowAttentionHandler = new WindowAttentionHandler.WindowAttentionHandler();
     componentManager = new Components.ComponentManager();
 
-    screenshotUI = new Screenshot.ScreenshotUI();
-
     introspectService = new Introspect.IntrospectService();
 
     layoutManager.init();